package chuancan;

public class Student {
    //定义变量
    private  int score;

    //getter 和setter方法
    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    //一个参数的构造方法
    public  Student(int scroe){
        this.score = scroe;
        System.out.println("==按值传参====调用一个参数的构造方法====");
    }

    //输出函数
    public  String toString(){
       return "Student{"+"score="+score+"}";
    }

}
